package com.xy.job.admin.core.notify

import com.xy.job.core.common.Mate
import kotlinx.serialization.Serializable

/**
 * 告警渠道配置
 */
sealed class NotifyChannel {

    @Serializable
    @Mate(displayNameDefaultValue = "钉钉通知配置")
    class DingTalkRobot(
        var token: String? = null,
        var secret: String? = null,
    ) : NotifyChannel()

    @Serializable
    @Mate(displayNameDefaultValue = "邮件通知配置")
    class Email(
        val receivers: List<String>? = null,
    ) : NotifyChannel()
}